package com.ttmusic.comparator;


import java.util.Comparator;

import com.ttmusic.entity.ArtistInfo;
import com.ttmusic.utils.ChineseToEnglish;

/**
 * 艺术家实体比较器-用于排序
 * @author wuchangyong
 * 
 */
public class ArtistInfoComparator implements Comparator<ArtistInfo> {
    @Override
    public int compare(ArtistInfo lhs, ArtistInfo rhs) {
    	return lhs.getPinYinHeadCharofArtist().charAt(0) - rhs.getPinYinHeadCharofArtist().charAt(0);
    }
}
